let list = [
  { label: "工作台", name: "工作台", path: "/WorkTable" },
  //
  {
    label: "待处理签约",
    name: [{ name: "签约管理" }, { name: "待处理签约" }],
    path: "/PendingContract",
  },
  {
    label: "签约记录",
    name: [{ name: "签约管理" }, { name: "签约记录" }],
    path: "/RecordOfContract",
  },
  //
  {
    label: "待处理服务",
    name: [{ name: "服务管理" }, { name: "待处理服务" }],
    path: "/PendingServices",
  },
  {
    label: "服务记录",
    name: [{ name: "服务管理" }, { name: "服务记录" }],
    path: "/RecordOfService",
  },
  //
  {
    label: "居民列表",
    name: [{ name: "居民管理" }, { name: "居民列表" }],
    path: "/ListOfResidents",
  },
  //
  {
    label: "机构管理",
    name: [{ name: "资料管理" }, { name: "机构管理" }],
    path: "/OrganizationManagement",
  },
  {
    label: "团队管理",
    name: [{ name: "资料管理" }, { name: "团队管理" }],
    path: "/TeamManagement",
  },
  {
    label: "医生管理",
    name: [{ name: "资料管理" }, { name: "医生管理" }],
    path: "/DoctorManagement",
  },
  {
    label: "服务包管理",
    name: [{ name: "资料管理" }, { name: "服务包管理" }],
    path: "/ServicePackManagement",
  },
  {
    label: "服务项目管理",
    name: [{ name: "资料管理" }, { name: "服务项目管理" }],
    path: "/ServiceProjectManagement",
  },
  {
    label: "业绩目标管理",
    name: [{ name: "资料管理" }, { name: "业绩目标管理" }],
    path: "/PerformanceTargetManagement",
  },
  //
  {
    label: "数据概括",
    name: [{ name: "数据统计" }, { name: "数据概括" }],
    path: "/DataSummarization",
  },
  {
    label: "签约业绩统计",
    name: [{ name: "数据统计" }, { name: "签约业绩统计" }],
    path: "/StatisticsOfContractData",
  },
  {
    label: "服务业绩统计",
    name: [{ name: "数据统计" }, { name: "服务业绩统计" }],
    path: "/ServicePerformanceStatistics",
  },
  {
    label: "业绩目标统计",
    name: [{ name: "数据统计" }, { name: "业绩目标统计" }],
    path: "/PerformanceTargetStatistics",
  },
  //
  {
    label: "标签管理",
    name: [{ name: "系统设置" }, { name: "标签管理" }],
    path: "/LabelSettings",
  },
  {
    label: "角色管理",
    name: [{ name: "系统设置" }, { name: "角色管理" }],
    path: "/RoleManagement",
  },
  {
    label: "资讯管理",
    name: [{ name: "系统设置" }, { name: "资讯管理" }],
    path: "/InformationManagement",
  },
  {
    label: "药品管理",
    name: [{ name: "系统设置" }, { name: "药品管理" }],
    path: "/DrugAdministration",
  },
  {
    label: "轮播图管理",
    name: [{ name: "系统设置" }, { name: "轮播图管理" }],
    path: "/CarouselGraphManagement",
  },
  {
    label: "系统公告",
    name: [{ name: "系统设置" }, { name: "系统公告" }],
    path: "/SystemAnnouncement",
  },
  {
    label: "协议管理",
    name: [{ name: "系统设置" }, { name: "协议管理" }],
    path: "/ProtocolManagement",
  },
  {
    label: "个人资料",
    name: [{ name: "系统设置" }, { name: "个人资料" }],
    path: "/PersonalData",
  },
  {
    label: "操作日志",
    name: [{ name: "系统设置" }, { name: "操作日志" }],
    path: "/OperationLog",
  },
];
// 获取名字查name，
export function getBreadcrumbName(path: any) {
  let data = list.find((item) => {
    return item.path == path;
  });

  if (data) {
    return data.name;
  }
}
// 获取名字查找对应路径
export function getSiderPath(label:any) {
  let data = list.find((item) => {
      return item.label == label;
     });
     
     if(data){
       return data.path
     }

};
